<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  website
 */

class m_website_views_block_PageEditSuccessView extends f_core_View
{
	public function execute()
	{
		$tpl = $this->getTemplateEngine()->disableCache();

		$tpl->setModuleTemplate("website", "back/block/PageEdit.html");
		
		$model = $this->getModel();
		
		$controller = f_core_Controller::getInstance();

		$tpl->assign("tab", $model['tab']);
		$tpl->assign("tabName", $model['tabName']);
		$tpl->assign("page", $model['page']);
		$tpl->assign("style", $model['style']);
		$tpl->assign("revisions", $model['revisions']);
		
		if(isset($model['tempPage']))
		{
			$tpl->assign("tempPage", $model['tempPage']);
		}
		
		return $tpl->renderDisplay();
	}
}